INCLUDE_DIRECTORIES(
  ./
  /usr/local/include/opencv
  /usr/local/include/boost
  )

Link_DIRECTORIES(
  /usr/local/lib	
  )

ADD_DEFINITIONS(-DDEBUG -ggdb -O0 -Wall -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE )


ADD_EXECUTABLE(
  readvideo
  main.cpp
  options.cpp
  read_video_thread.cpp
  read_jpegvideo_thread.cpp
  frame_header.cpp
  backup.cpp
  other_functions.cpp
  )

TARGET_LINK_LIBRARIES(
  readvideo
  cxcore cv highgui
  libboost_thread-gcc42-mt.so
)

ADD_EXECUTABLE(
  test_cproducer
  test_cproducer.cpp
  read_video_thread.cpp
  frame_header.cpp
  other_functions.cpp
  )

TARGET_LINK_LIBRARIES(
  test_cproducer
  cxcore cv highgui
  libboost_thread-gcc42-mt.so
)

